import request from '@/utils/request.js'
const PATH = '/admin/user/'

// 获取用户列表
export const getUserList = (params) => request.get(PATH + 'page', { params })

// 修复状态
export const updateStatus = ({ id, status }) =>
  request.put(PATH + `${id}/${status}`)

// 删除用户
export const deleteUser = (id) =>
  request.delete(PATH + 'batchDelete', {
    params: {
      ids: id.join(',')
    }
  })
